import { createRouter, createWebHistory } from 'vue-router';
import Home from './views/Home.vue'; // 假设你的主页组件是 Home.vue
import Moments from './views/Moments.vue'; // 假设你的朋友圈组件是 Moments.vue

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/moments',
    name: 'Moments',
    component: Moments
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
